﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace GroupMeal.Activities
{
    /// <summary>
    /// Vip优惠活动详情
    /// </summary>
    public class VipDisCount :Entity<Guid>,IMultiTenant
    {
        /// <summary>
        /// 租户ID
        /// </summary>
        public virtual Guid? TenantId
        {
            get;set;
        }

        /// <summary>
        /// 所属活动Id
        /// </summary>
        public virtual Guid ActivityId
        {
            get;set;
        }

        /// <summary>
        /// 所属活动
        /// </summary>
        public virtual Activity Activity
        {
            get;set;
        }

        /// <summary>
        /// 折扣率
        /// </summary>
        public virtual float Discount
        {
            get; set;
        } =(float) 0.8;

        /// <summary>
        /// 开通会员价格
        /// </summary>
        public virtual float VipPrice
        {
            get;set;
        }

        /// <summary>
        /// 对应会员有效时长
        /// </summary>
        public virtual int VipLastDays
        {
            get;set;
        }


        /// <summary>
        /// 活动轮播图片
        /// </summary>
        public virtual string? ScrollImageUrl
        {
            get;set;
        }


        /// <summary>
        /// 活动详情图片
        /// (多张，以英文逗号隔开，且展示顺序按照数据中顺序进行)
        /// </summary>
        public virtual string? DetailImageUrls
        {
            get;set;
        }

        /// <summary>
        /// 活动描述
        /// </summary>
        public virtual string?  Description
        {
            get;set;
        }
    }
}
